import koa from 'koa'

const app = new koa()

// 解析表单数据的中间件
import bodyparser from 'koa-bodyparser'
app.use(bodyparser())

import {moroute} from './route.js'
app.use(moroute)

app.listen(8080,function(){
    console.log('server running at http://127.0.0.1:8080');
})